package com.novax.ex.activity.infrastructure.mapper;

import com.novax.ex.activity.infrastructure.entity.TaskAwardLog;
import com.novax.ex.common.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Hsylient
 * @description 针对表【task_award_log(活动发放奖励记录表)】的数据库操作Mapper
 * @createDate 2023-06-26 10:45:29
 * @Entity com.novax.ex.activity.infrastructure.entity.TaskAwardLog
 */
public interface TaskAwardLogMapper extends BaseMapper {


    /**
     * 查询到用户已经完成的做大步骤
     */
    Integer selectMaxStep(@Param("uid") Long uid);

    TaskAwardLog selectMaxStepByUserId(@Param("userId") Long userId);

    List<TaskAwardLog> selectByUserId(@Param("userId") Long userId);

}
